package com.googlecode.kcalculator;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Toast;

public class kcalculator extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        System.out.println("yooo");
        // Set ContentView
        setContentView(R.layout.login_view);
        
        // Event handler
        findViewById(R.id.bt_login).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Toast.makeText(getApplicationContext(), "Databaseconnection isn't implemented..", Toast.LENGTH_LONG).show();
			}
		});
        
        findViewById(R.id.bt_register).setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent inii = new Intent(kcalculator.this, register_view.class);
				kcalculator.this.startActivity(inii);
			}
		});
    }
}